﻿namespace DMS.BaseClass
{
    public enum ParamTypes
    {
        System = 0,
        Member = 1
    }
    public enum ActionType
    {
        New = 0,
        Edit = 1,
        View = 2
    }
    /// <summary>
    /// NotSubmit:未提交、Approving：审批中、Delivering：采购调拨中、Delivered:已调拨 
    /// </summary>
    public enum FWApplyFormStatus
    {
        NotSubmit = 0,
        Approving = 1,
        Delivering = 2,
        Delivered = 3
    }

    /// <summary>
    /// NewAdd:新增资产、OldUpdate：报废更新
    /// </summary>
    public enum FWApplyAssetType
    {
        NewAdd = 1,
        OldUpdate = 2
    }

    /// <summary>
    /// 1=入库
    ///2=在用
    ///3=暂存
    ///4=报废
    ///5=待报废
    ///6=预出库//流程未结束
    ///7=已出库但待分配//流程结束，但未关闭申请单（分配给申请单）
    /// </summary>
    public enum FWAssetStatusType
    {
        Available = 1,
        OnUse = 2,
        TempStock = 3,
        Unavailable = 4,
        UnUseable = 5,
        PreOutStock = 6,
        OutStock = 7
    }

    public enum ListModeTypes
    {
        Management = 0,
        SingleSelector = 1,
        MutilSelector = 2,
        SelectAction = 3
    }

    /// <summary>
    /// CGForm: 物资采购单； RKForm: 物资入库单；WSForm: 物资申请单
    /// </summary>
    public enum FormType { CGForm = 1, RKForm = 2, WSForm = 3 }

    /// <summary>
    /// 用户登录类型
    /// </summary>
    public enum LoginTypes
    {
        /// <summary>
        /// 普通登录
        /// </summary>
        Normal = 0,
        /// <summary>
        /// 使用IAP平台SSO登录
        /// </summary>
        IAPSSO = 1,
        /// <summary>
        /// 使用省公司门户登录
        /// </summary>
        PortalSSO = 2,
        /// <summary>
        /// 
        /// </summary>
        WapPortalSSO = 3
    }

    public enum RefreshType
    {
        NoRefresh,
        OpenWindow,
        OpenDialog
    }

    /// <summary>
    /// 状态类型
    /// </summary>
    public enum StatusType
    {
        /// <summary>
        /// 禁用
        /// </summary>
        Deactived = 0,
        /// <summary>
        /// 启用
        /// </summary>
        Actived = 1,
        /// <summary>
        /// 删除
        /// </summary>
        Deleted = 2
    }

    /// <summary>
    /// 短信类型
    /// </summary>
    public enum SmsType
    {
        OutStock = 1
    }

    /// <summary>
    /// 管理部门 0、市场部
    /// 1、行政服务中心
    /// </summary>
    public enum ManageDeptType
    {
        Market = 1,
        AdminServiceCenter = 0
    }

    /// <summary>
    /// 申请资产类型 1:服营厅非网资产
    ///              2:办公场所非网资产
    /// </summary>
    public enum ApplyAssetType
    {
        HallAsset = 1,
        OfficeAsset = 2
    }

    /// <summary>
    /// 流程编号
    /// </summary>
    public enum FlowNum
    {
        /// <summary>
        /// 配送流程
        /// </summary>
        Delivery = 1
    }

    #region 权限管理
    /// <summary>
    /// 受控资源类型：页面、功能、数据
    /// </summary>
    public enum ResType
    {
        Page,
        Function,
        Data
    }

    /// <summary>
    /// 授权对象类型：角色、用户、部门
    /// </summary>
    public enum ActorType
    {
        Role = 1,
        User = 2,
        Dept = 3
    }

    #endregion

    /// <summary>
    /// 配送状态
    /// </summary>
    public enum DeliveryStatus
    {
        /// <summary>
        /// 审批中
        /// </summary>
        SP,
        /// <summary>
        /// 初始
        /// </summary>
        CS,
        /// <summary>
        /// 已取件
        /// </summary>
        QJ,
        /// <summary>
        /// 已签收
        /// </summary>
        QS,
        /// <summary>
        /// 已退件
        /// </summary>
        TJ,
        /// <summary>
        /// 已回单
        /// </summary>
        HD,
        /// <summary>
        /// 稽核成功
        /// </summary>
        JHCG,
        /// <summary>
        /// 稽核失败
        /// </summary>
        JHSB
    }

    /// <summary>
    /// 配送单类型
    /// </summary>
    public enum DeliveryTypes
    {
        /// <summary>
        /// 正常件
        /// </summary>
        ZC,
        /// <summary>
        /// 收发件
        /// </summary>
        SF
    }

    /// <summary>
    /// 项目类型
    /// </summary>
    public enum ProjectTypes
    {
        /// <summary>
        /// 业务类
        /// </summary>
        YW,
        /// <summary>
        /// 常规类
        /// </summary>
        CG,
        /// <summary>
        /// 电子商务类
        /// </summary>
        DZ,
        /// <summary>
        /// 社会网点类
        /// </summary>
        SH
    }

    /// <summary>
    /// 配送时限
    /// </summary>
    public enum DeliveryTimeLimit
    {
        /// <summary>
        /// 正常
        /// </summary>
        Normal,
        /// <summary>
        /// 预警
        /// </summary>
        Warning,
        /// <summary>
        /// 超时
        /// </summary>
        Delay
    }

    /// <summary>
    /// 调用接口返回值
    /// </summary>
    public enum ReturnCode
    {
        /// <summary>
        /// 失败
        /// </summary>
        F,
        /// <summary>
        /// 成功
        /// </summary>
        S
    }

        /// <summary>
    /// 调用接口方向
    /// </summary>
    public enum Direction
    {
        /// <summary>
        /// 外部系统调用本系统
        /// </summary>
        I,
        /// <summary>
        /// 本系统调用外部系统
        /// </summary>
        O
    }

    /// <summary>
    /// 基本信息类型
    /// </summary>
    public enum BaseInfoType
    {
        /// <summary>
        /// 单位
        /// </summary>
        DW,

        /// <summary>
        /// 个体户
        /// </summary>
        GTH,

        /// <summary>
        /// 个人
        /// </summary>
        GR,

        /// <summary>
        /// 综合资料信息
        /// </summary>
        ZH
    }
    
    /// <summary>
    /// 基本信息提示级别，正常及告警级别的数据允许保存，错误数据不许保存
    /// </summary>
    public enum AlarmType
    {
        /// <summary>
        /// 正常
        /// </summary>
        Normal = 0,
        /// <summary>
        /// 错误
        /// </summary>
        Error = 1,
        /// <summary>
        /// 告警
        /// </summary>
        Warning = 2
    }
}
